package objects;

public class NewSpeedLimit {
    
	private Integer id;
    private Double p1Lat;
	private Double p1Long;
	private Double p2Lat;
	private Double p2Long;
    private Double length;
    private Double width;
	private Integer maxSpeed;

	public NewSpeedLimit() {
    	id=0;
		p1Lat=0.0;
		p1Long=0.0;
		p2Lat=0.0;
		p2Long=0.0;
		length=0.0;
		width=0.0;
		maxSpeed=0;
	}

    public NewSpeedLimit(Integer newid) {
        id=newid;
        p1Lat=0.0;
        p1Long=0.0;
        p2Lat=0.0;
        p2Long=0.0;
        length=0.0;
        width=0.0;
        maxSpeed=0;
    }

	public void setID(Integer newid) {
		id = newid;
	}

	public void setP1Lat(Double p1latnew) {
		p1Lat= p1latnew;
	}

    public void setP1Long(Double p1longnew) {
        p1Long= p1longnew;
    }

    public void setP2Lat(Double p2latnew) {
        p2Lat= p2latnew;
    }

    public void setP2Long(Double p2longnew) {
        p2Long= p2longnew;
    }

    public void setLength(Double lengthnew) {
        length = lengthnew;
    }

    public void setWidth(Double widthnew) {
        width=widthnew;
    }

    public void setMaxSpeed(Integer maxspeednew) {
        maxSpeed= maxspeednew;
    }
	
	public Integer getID() {
		return id;
	}
	
	public Double getP1Lat() {
		return p1Lat;
	}

	public Double getP1Long() {
		return p1Long;
	}

	public Double getP2Lat() {
		return p2Lat;
	}

	public Double getP2Long() {
		return p2Long;
	}
	
	public Double getLength() {
		return length;
	}
	
	public Double getWidth() {
		return width;
	}

	public Integer getMaxSpeed() {
		return maxSpeed;
	}

	public void display() {
        System.out.println("NewSpeedLimit ID " + id);
        System.out.println("Point1Lat: " + p1Lat);
        System.out.println("point1Long: " + p1Long);
        System.out.println("point2Lat: " + p2Lat);
        System.out.println("point2Long: " + p2Long);
        System.out.println("length: " + length);
        System.out.println("width: " + width);
        System.out.println("maxSpeed: " + maxSpeed);
	}
}
